<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>资金管理管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			//$("#name").focus();
			$("#inputForm").validate({
				submitHandler: function(form){
					loading('正在提交，请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});
		});
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li><a href="${ctx}/project/fundmanagement/fundManagement/">资金管理列表</a></li>
		<li class="active"><a href="${ctx}/project/fundmanagement/fundManagement/form?id=${fundManagement.id}">资金管理<shiro:hasPermission name="project:fundmanagement:fundManagement:edit">${not empty fundManagement.id?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission name="project:fundmanagement:fundManagement:edit">查看</shiro:lacksPermission></a></li>
	</ul><br/>
	<form:form id="inputForm" modelAttribute="fundManagement" action="${ctx}/project/fundmanagement/fundManagement/save" method="post" class="form-horizontal">
		<form:hidden path="id"/>

		<%--<sys:message content="${message}"/>		--%>

		<div class="control-group">
			<label class="control-label">经费截止日期：</label>
			<div class="controls">
				<input name="fundDeadline" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate "
					value="<fmt:formatDate value="${fundManagement.fundDeadline}" pattern="yyyy-MM-dd HH:mm:ss"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">计划总投资：</label>
			<div class="controls">
				<form:input path="plannedInvestment" htmlEscape="false" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">计划完成专项国拨经费：</label>
			<div class="controls">
				<form:input path="plannedSpecialNationFund" htmlEscape="false" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">国拨经费建设进度：</label>
			<div class="controls">
				<form:input path="nationFundProgress" htmlEscape="false" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">已支付国拨经费：</label>
			<div class="controls">
				<form:input path="nationFundPaid" htmlEscape="false" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">计划完成配套经费额度：</label>
			<div class="controls">
				<form:input path="plannedSupportFund" htmlEscape="false" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">配套经费建设进度：</label>
			<div class="controls">
				<form:input path="supportFundProgress" htmlEscape="false" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">已支付配套经费：</label>
			<div class="controls">
				<form:input path="supportFundPaid" htmlEscape="false" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">配套经费来源说明：</label>
			<div class="controls">
				<form:input path="supportFundSource" htmlEscape="false" class="input-xlarge "/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">备注：</label>
			<div class="controls">
				<form:input path="remark" htmlEscape="false" class="input-xlarge "/>
			</div>
		</div>

		<div class="form-actions">
			<shiro:hasPermission name="project:fundmanagement:fundManagement:edit"><input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;</shiro:hasPermission>
			<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
			<a href="${ctx}/project/equipment/equipment/list?projectId=${fundManagement.projectId}" class="btn btn-primary">下一步</a>
		</div>
	</form:form>
</body>
</html>